Release 10.1A: OpenEdge Development:
Progress 4GL Reference
EXP function
Returns the result of raising a number to a power. The number is called the
baseand the power is called theexponent.Syntax
baseA constant, field name, variable name, or expression that evaluates to a numeric value.
exponentA numeric expression.
ExampleThis procedure calculates how much a principal amount invested at a given compounded annual interest rate grows over a specified number of years:
Notes
- After converting the base and exponent to the floating-point format, the EXP function uses standard system library routines. On some machines, these routines do not handle large numbers well and might cause your terminal to hang. Also, because the calculations are done in floating-point arithmetic, full decimal precision is not possible beyond 1-12 significant digits on most machines.
- The EXP function is precise to approximately 10 decimal points.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |